<?php echo $javascript->link('jquery.min.js', false); ?>
<?php echo $javascript->link('jquery-ui-1.7.2.custom.min.js', false); ?>
<?php echo $javascript->link('button', false); ?>

<?php echo $this->element('admin_sidepain'); ?>
<div id="flashMessageWrapper"><?php $session->flash(); ?></div>
<div class="admin-maincontent">
    <table>
    <tr>
        <td>id</td>
        <td>用户名</td>
        <td>昵称</td>
        <td>邮箱</td>
        <td>用户组</td>
        <td>主题</td>
        <td>创建日期</td>
    </tr>
    <?php foreach($userInfo as $key => $user) { ?>
        <tr>
            <td><?php echo $user['User']['id']; ?></td>
            <td><?php echo $user['User']['username']; ?></td>
            <td><?php echo $user['User']['nickname']; ?></td>
            <td><?php echo $user['User']['email']; ?></td>
            <td><?php echo $user['Group']['name']; ?></td>
            <td><?php echo $user['User']['theme']; ?></td>
            <td><?php echo $user['User']['createdate']; ?></td>
            <td>
                <div class="action">
                    <a href="<?php echo $html->url('modifyUser/'.$user['User']['id']);?>" class="fg-button ui-state-default" title="<?php __('alter user'); ?>">
                        <span class="ui-icon ui-icon-pencil"></span></a>
                    <a href="<?php echo $html->url('deleteUser/'.$user['User']['id']);?>" class="fg-button ui-state-highlight" title="<?php __('delete user'); ?>">
                        <span class="ui-icon ui-icon-trash"></span></a>
                </div>
            </td>
        </tr>
    <?php } ?>
    </table>
</div>
    